aa79e41d1c
seems to fit the layer much better as we really have a very reduced instruction set
21 lines
371 B
Ruby
21 lines
371 B
Ruby
require_relative '../helper'
|
|
|
|
# Fragments are small programs that we run through the interpreter and really only check
|
|
# - the no. of instructions processed
|
|
# - the stdout output
|
|
|
|
module Fragments
|
|
include RuntimeTests
|
|
|
|
# define setup to NOT load parfait.
|
|
def setup
|
|
@stdout = ""
|
|
@machine = Risc.machine.boot
|
|
end
|
|
|
|
def main()
|
|
@string_input
|
|
end
|
|
|
|
end
|