Switch branches/tags
Nothing to show
Find file Copy path
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
msg = tests.shift()
helper.adapter.receive msg
assert.ok helper.sent[0].match /1\. A robot may not .+/