diff options
| author | Daniel Bovensiepen <[email protected]> | 2012-05-29 23:51:51 +0800 |
|---|---|---|
| committer | Daniel Bovensiepen <[email protected]> | 2012-05-29 23:51:51 +0800 |
| commit | 82d600da24bb0866472126b4117c55dda773908d (patch) | |
| tree | ae377c095ff6f4d8d8cd4236780f329c88722930 | |
| parent | 84c5d35b9e95e1baaa1a28fcf23981068b075621 (diff) | |
| download | mruby-82d600da24bb0866472126b4117c55dda773908d.tar.gz mruby-82d600da24bb0866472126b4117c55dda773908d.zip | |
Add literal tests for currently working String literals and make notice about literals which yet need to be proper implementation
| -rw-r--r-- | test/t/literals.rb | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/test/t/literals.rb b/test/t/literals.rb index 1f755863a..700c4c846 100644 --- a/test/t/literals.rb +++ b/test/t/literals.rb @@ -46,7 +46,22 @@ assert('Literals Strings Quoted Non-Expanded', '8.7.6.3.4') do end assert('Literals Strings Quoted Expanded', '8.7.6.3.5') do - # segv atm - true + a = %Q{abc} + b = %Q(abc) + c = %Q[abc] + d = %Q<abc> + e = %Q/abc/ + f = %Q/ab\/c/ + g = %Q{#{a}} + + a == 'abc' and b == 'abc' and c == 'abc' and d == 'abc' and + e == 'abc' and f == 'ab/c' and g == 'abc' end +# Not Implemented ATM assert('Literals Strings Here documents', '8.7.6.3.6') do + +# Not Implemented ATM assert('Literals Array', '8.7.6.4') do + +# Not Implemented ATM assert('Literals Regular expression', '8.7.6.5') do + +# Not Implemented ATM assert('Literals Symbol', '8.7.6.6') do |
