Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (17 sloc) 451 Bytes
Tests = require './tests'
assert = require 'assert'
helper = Tests.helper()
require('../src/scripts/rules') helper
tests = [
'helper: the rules'
'helper: the laws'
'helper: what are the laws?'
'helper: what are the three laws of robotics?'
'helper: what are the 3 laws?'
]
until tests.length == 0
helper.reset()
msg = tests.shift()
helper.adapter.receive msg
assert.ok helper.sent[0].match /1\. A robot may not .+/
helper.stop()
Something went wrong with that request. Please try again.