From 7da23f95df08e50036a9780b0367bf9853f8bf8c Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Wed, 6 May 2015 20:42:38 +0200 Subject: [PATCH] Update asserts for new outputs --- test/wolfram-test.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/wolfram-test.coffee b/test/wolfram-test.coffee index 2004a72..c29b072 100644 --- a/test/wolfram-test.coffee +++ b/test/wolfram-test.coffee @@ -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'