Skip to content

Commit

Permalink
create backends/wolfram_test.exs with basic "1 + 1" test (stubbed) p.…
Browse files Browse the repository at this point in the history
…289 #1
  • Loading branch information
nelsonic committed Aug 11, 2019
1 parent 354e448 commit b0503ed
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions apps/info_sys/test/backends/wolfram_tests.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
defmodule InfoSys.Backends.WolframTest do
use ExUnit.Case, async: true

test "makes request, reports results, then terminates" do
actual = hd InfoSys.compute("1 + 1", [])
assert actual.text == "2"
end

test "no query results reports an empty list" do
assert InfoSys.compute("none", [])
end
end

0 comments on commit b0503ed

Please sign in to comment.