Some cleanup and fixes to the runtests script. The -P option will be changing.
[external/ragel.git] / test / atoi3.rl
index 4df39af..b8d54f6 100644 (file)
@@ -1,14 +1,9 @@
 #
 # @LANG: ruby
-# @ALLOW_GENFLAGS: -T0
 #
 
-neg = false
-val = 0
-
 %%{
-    machine atoi1_java;
-    alphtype byte;
+    machine atoi3;
     action begin {
         neg = false;
         val = 0;
@@ -35,14 +30,13 @@ def run_machine( data )
        p = 0;
        pe = data.length
        cs = 0
-       cs = 0
        val = 0;
        neg = false;
 
        %% write init;
        %% write exec;
        %% write eof;
-       if  cs >= atoi1_java_first_final
+       if  cs >= atoi3_first_final
                puts "ACCEPT"
        else
                puts "FAIL"