2015-11-18 12:04:57 +01:00
|
|
|
require_relative '../helper'
|
2015-10-19 13:46:12 +02:00
|
|
|
|
|
|
|
# Fragments are small programs that we run through the interpreter and really only check
|
|
|
|
# - the no. of instructions processed
|
|
|
|
# - the stdout output
|
|
|
|
|
2014-05-21 20:13:12 +02:00
|
|
|
module Fragments
|
2015-11-18 12:04:57 +01:00
|
|
|
include RuntimeTests
|
2014-05-21 20:13:12 +02:00
|
|
|
|
2015-11-18 12:04:57 +01:00
|
|
|
# define setup to NOT load parfait.
|
2015-10-19 13:46:12 +02:00
|
|
|
def setup
|
|
|
|
@stdout = ""
|
2017-01-19 08:02:29 +01:00
|
|
|
@machine = Risc.machine.boot
|
2014-06-05 12:02:36 +02:00
|
|
|
end
|
2015-05-16 11:53:10 +02:00
|
|
|
|
2015-11-18 12:04:57 +01:00
|
|
|
def main()
|
|
|
|
@string_input
|
2015-11-05 16:00:41 +01:00
|
|
|
end
|
2015-11-18 12:04:57 +01:00
|
|
|
|
2014-05-21 20:13:12 +02:00
|
|
|
end
|