Update asserts for new outputs

This commit is contained in:
rnhmjoj 2015-05-06 20:42:38 +02:00
parent 8176bb6438
commit 7da23f95df

View File

@ -29,9 +29,9 @@ describe 'modulo wolfram', ->
acc = 0
asjon.receive (e,l) ->
if acc is 0
l.join().should.equal 'Contattando Wolfram Alpha...'
l.join().should.match /(\w+| )+\.{3}$/g
else
l.join().should.equal 'invalid response from Wolfram Alpha'
l.join().split(':')[0].should.equal "c'è qualche problema"
acc++
if acc is 2 then done()
asjon.send 'asjon wfa test'
@ -44,7 +44,7 @@ describe 'modulo wolfram', ->
acc = 0
asjon.receive (e,l) ->
if acc is 0
l.join().should.equal 'Contattando Wolfram Alpha...'
l.join().should.match /(\w+| )+\.{3}$/g
else
list = l.join().split '\n'
list[0].should.equal '=== Input interpretation'