Skip to content

Commit

Permalink
Add ci script for new example
Browse files Browse the repository at this point in the history
  • Loading branch information
imclerran committed May 13, 2024
1 parent 369e60a commit 40eccd5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ci/expect_scripts/optional.exp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/expect

# uncomment line below for debugging
# exp_internal 1

set timeout 7

spawn ./examples/optional


expect "{\"firstName\":\"Luke\",}\r\n{\"firstName\":\"Luke\",\"lastName\":null}\r\n{\"firstName\":\"Luke\",\"lastName\":null}\r\n{\"firstName\":\"Luke\",\"lastName\":\"Boswell\"}" {
expect eof
exit 0
}

puts stderr "\nError: output was different from expected value."
exit 1

0 comments on commit 40eccd5

Please sign in to comment.