update the reader rewrite and reflect name changes

This commit is contained in:
Torsten Ruger
2015-10-09 17:51:14 +03:00
parent 02e9975ad6
commit 4c17ed2e6e
30 changed files with 114 additions and 119 deletions

View File

@ -2,14 +2,14 @@ require_relative '../helper'
# simple tests to check parsing pworks and the first classes come out right.
#
# build up from small to check larger expressions are correct
# build up from small to check larger statements are correct
module Fragments
def check
expressions = Virtual.machine.boot.parse_and_compile @string_input
statements = Virtual.machine.boot.parse_and_compile @string_input
@expect.each_with_index do | should , i |
exp_i = expressions[i]
exp_i = statements[i]
assert exp_i.is_a?(Virtual::Slot) , "compiles should return #{should}, not #{exp_i}"
assert_equal should , exp_i.class
end