summaryrefslogtreecommitdiff
path: root/src/strings
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-08-27 15:24:44 -0700
committerBen Longbons <b.r.longbons@gmail.com>2014-08-27 15:27:15 -0700
commitddb8f22ada5b22fcaa4ed850d58374becfb0a556 (patch)
tree819ee713950e6424a6471c6a89031fac66eea0f2 /src/strings
parenta88ffd2d9b2adec5de19a1bb88e6b8656985a044 (diff)
downloadtmwa-ddb8f22ada5b22fcaa4ed850d58374becfb0a556.tar.gz
tmwa-ddb8f22ada5b22fcaa4ed850d58374becfb0a556.tar.bz2
tmwa-ddb8f22ada5b22fcaa4ed850d58374becfb0a556.tar.xz
tmwa-ddb8f22ada5b22fcaa4ed850d58374becfb0a556.zip
fix tests
Diffstat (limited to 'src/strings')
-rw-r--r--src/strings/astring.py5
-rw-r--r--src/strings/rstring.py5
-rw-r--r--src/strings/vstring.py4
-rw-r--r--src/strings/xstring.py4
-rw-r--r--src/strings/zstring.py4
5 files changed, 22 insertions, 0 deletions
diff --git a/src/strings/astring.py b/src/strings/astring.py
index 47e4e55..f4cbf66 100644
--- a/src/strings/astring.py
+++ b/src/strings/astring.py
@@ -23,6 +23,11 @@ class AString(object):
str256 = '0123456789abcdef' * 16
+ test_extra = '''
+ using tmwa::operator "" _s;
+ #include "../src/strings/zstring.hpp"
+ '''
+
tests = [
('tmwa::AString(""_s)', '{allocated = ""}'),
('tmwa::AString(tmwa::ZString(""_s))', '{allocated = ""}'),
diff --git a/src/strings/rstring.py b/src/strings/rstring.py
index fd26801..61603d8 100644
--- a/src/strings/rstring.py
+++ b/src/strings/rstring.py
@@ -29,6 +29,11 @@ class RString(object):
str256 = '0123456789abcdef' * 16
+ test_extra = '''
+ using tmwa::operator "" _s;
+ #include "../src/strings/zstring.hpp"
+ '''
+
tests = [
('tmwa::RString(""_s)', '""'),
('tmwa::RString(tmwa::ZString(""_s))', '""'),
diff --git a/src/strings/vstring.py b/src/strings/vstring.py
index 945e3ee..8e6952d 100644
--- a/src/strings/vstring.py
+++ b/src/strings/vstring.py
@@ -16,6 +16,10 @@ class VString(object):
str256 = '0123456789abcdef' * 16
+ test_extra = '''
+ using tmwa::operator "" _s;
+ '''
+
tests = [
('tmwa::VString<255>(""_s)', '""'),
('tmwa::VString<255>("Hello"_s)', '"Hello"'),
diff --git a/src/strings/xstring.py b/src/strings/xstring.py
index d289485..b2e33bb 100644
--- a/src/strings/xstring.py
+++ b/src/strings/xstring.py
@@ -17,6 +17,10 @@ class XString(object):
str256 = '0123456789abcdef' * 16
+ test_extra = '''
+ using tmwa::operator "" _s;
+ '''
+
tests = [
('tmwa::XString(""_s)', '"" = {base = 0x0}'),
('tmwa::XString("Hello"_s)', '"Hello" = {base = 0x0}'),
diff --git a/src/strings/zstring.py b/src/strings/zstring.py
index 7f9ea2a..f57252f 100644
--- a/src/strings/zstring.py
+++ b/src/strings/zstring.py
@@ -17,6 +17,10 @@ class ZString(object):
str256 = '0123456789abcdef' * 16
+ test_extra = '''
+ using tmwa::operator "" _s;
+ '''
+
tests = [
('tmwa::ZString(""_s)', '"" = {base = 0x0}'),
('tmwa::ZString("Hello"_s)', '"Hello" = {base = 0x0}'),