diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-08-27 15:24:44 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-08-27 15:27:15 -0700 |
commit | ddb8f22ada5b22fcaa4ed850d58374becfb0a556 (patch) | |
tree | 819ee713950e6424a6471c6a89031fac66eea0f2 /src/map/magic-expr.py | |
parent | a88ffd2d9b2adec5de19a1bb88e6b8656985a044 (diff) | |
download | tmwa-ddb8f22ada5b22fcaa4ed850d58374becfb0a556.tar.gz tmwa-ddb8f22ada5b22fcaa4ed850d58374becfb0a556.tar.bz2 tmwa-ddb8f22ada5b22fcaa4ed850d58374becfb0a556.tar.xz tmwa-ddb8f22ada5b22fcaa4ed850d58374becfb0a556.zip |
fix tests
Diffstat (limited to 'src/map/magic-expr.py')
-rw-r--r-- | src/map/magic-expr.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/magic-expr.py b/src/map/magic-expr.py index cdb2bcf..865a175 100644 --- a/src/map/magic-expr.py +++ b/src/map/magic-expr.py @@ -26,6 +26,10 @@ class fun_t(object): yield '->ret_ty', value['ret_ty'] yield '->fun', value['fun'] + test_extra = ''' + using tmwa::operator "" _s; + ''' + tests = [ ('static_cast<tmwa::magic::fun_t *>(nullptr)', '(fun_t *) nullptr'), ('new tmwa::magic::fun_t{"name"_s, "sig"_s, \'\\0\', nullptr}', '(fun_t *) = {->name = "name", ->signature = "sig", ->ret_ty = 0 \'\\000\', ->fun = 0x0}'), |