From ddb8f22ada5b22fcaa4ed850d58374becfb0a556 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Wed, 27 Aug 2014 15:24:44 -0700 Subject: fix tests --- src/map/magic-expr.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/map/magic-expr.py') 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(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}'), -- cgit v1.2.3-70-g09d2