better test for foo, nice rythm

This commit is contained in:
Torsten Ruger
2014-05-21 21:37:04 +03:00
parent e3bccaa0fe
commit 33fb8e7d2f
7 changed files with 27 additions and 8 deletions

View File

@@ -1,10 +1,15 @@
require_relative '../helper'
require 'parslet/convenience'
#test the generation of code fragments.
# ie parse assumes @string_input
# compile
# assemble/write assume a @should array with the bytes in it
# since the bytes are store, the test can be run on any machine.
# but to get the bytes, one needs to link and run the object file to confirm correctness (to be automated)
module Fragments
# need a code generator, for arm
def setup