From 61a47e344db34211c8d299660d6e0eabc4463d4b Mon Sep 17 00:00:00 2001 From: Daniel Bovensiepen Date: Tue, 29 May 2012 07:23:17 +0800 Subject: Raise SEGV by using String literal --- test/t/literals.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/t/literals.rb b/test/t/literals.rb index 92f9bd755..477e499a0 100644 --- a/test/t/literals.rb +++ b/test/t/literals.rb @@ -22,10 +22,9 @@ assert('Literals Numerical', '8.7.6.2') do 1.0e1 == 10.0 and 1.0e-1 == 0.1 and 1.0e+1 == 10.0 end -#assert('Literals Strings Single Quoted', '8.7.6.3.2') do -# creates segmentation fault for now -# 'abc' == 'abc' and '\'' == '\'' and '\\' == '\\' -#end +assert('Literals Strings Single Quoted', '8.7.6.3.2') do + 'abc' == 'abc' and '\'' == '\'' and '\\' == '\\' +end assert('Literals Strings Double Quoted', '8.7.6.3.3') do a = "abc" -- cgit v1.2.3