diff options
Diffstat (limited to 'test/test.lua')
-rw-r--r-- | test/test.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test.lua b/test/test.lua index b3778bc..1a5e9e2 100644 --- a/test/test.lua +++ b/test/test.lua @@ -333,6 +333,16 @@ if pcall(require, 'torch') then assert(env.istype(t, '.*Long') == true) assert(env.istype(t, 'torch.IntTensor') == false) assert(env.istype(t, 'torch.Long') == false) + + -- test argcheck function serialization + local f = argcheck{ + {name='arg', type='string'}, + call = function(arg) + print(arg) + end + } + local m = torch.MemoryFile() + m:writeObject(f) end print('PASSED') |