From 4b9521d84903a41597843c43ad0ff2a7290f0109 Mon Sep 17 00:00:00 2001 From: Clare Macrae Date: Mon, 12 Aug 2019 22:44:05 +0100 Subject: [PATCH] Initial commit of test data files, copied in from the Python version --- cpp/tests/invoice.json | 17 +++++++++++++++++ cpp/tests/invoice_new_plays.json | 13 +++++++++++++ cpp/tests/new_plays.json | 4 ++++ cpp/tests/plays.json | 5 +++++ ...tatement.test_example_statement.approved.txt | 6 ++++++ 5 files changed, 45 insertions(+) create mode 100644 cpp/tests/invoice.json create mode 100644 cpp/tests/invoice_new_plays.json create mode 100644 cpp/tests/new_plays.json create mode 100644 cpp/tests/plays.json create mode 100644 cpp/tests/test_statement.test_example_statement.approved.txt diff --git a/cpp/tests/invoice.json b/cpp/tests/invoice.json new file mode 100644 index 0000000..9782f9b --- /dev/null +++ b/cpp/tests/invoice.json @@ -0,0 +1,17 @@ +{ + "customer": "BigCo", + "performances": [ + { + "playID": "hamlet", + "audience": 55 + }, + { + "playID": "as-like", + "audience": 35 + }, + { + "playID": "othello", + "audience": 40 + } + ] +} \ No newline at end of file diff --git a/cpp/tests/invoice_new_plays.json b/cpp/tests/invoice_new_plays.json new file mode 100644 index 0000000..723f35b --- /dev/null +++ b/cpp/tests/invoice_new_plays.json @@ -0,0 +1,13 @@ +{ + "customer": "BigCoII", + "performances": [ + { + "playID": "henry-v", + "audience": 53 + }, + { + "playID": "as-like", + "audience": 55 + } + ] +} diff --git a/cpp/tests/new_plays.json b/cpp/tests/new_plays.json new file mode 100644 index 0000000..7a4eec6 --- /dev/null +++ b/cpp/tests/new_plays.json @@ -0,0 +1,4 @@ +{ + "henry-v": {"name": "Henry V", "type": "history"}, + "as-like": {"name": "As You Like It", "type": "pastoral"} +} diff --git a/cpp/tests/plays.json b/cpp/tests/plays.json new file mode 100644 index 0000000..bbe3880 --- /dev/null +++ b/cpp/tests/plays.json @@ -0,0 +1,5 @@ +{ + "hamlet": {"name": "Hamlet", "type": "tragedy"}, + "as-like": {"name": "As You Like It", "type": "comedy"}, + "othello": {"name": "Othello", "type": "tragedy"} +} diff --git a/cpp/tests/test_statement.test_example_statement.approved.txt b/cpp/tests/test_statement.test_example_statement.approved.txt new file mode 100644 index 0000000..9afad34 --- /dev/null +++ b/cpp/tests/test_statement.test_example_statement.approved.txt @@ -0,0 +1,6 @@ +Statement for BigCo + Hamlet: $650.00 (55 seats) + As You Like It: $580.00 (35 seats) + Othello: $500.00 (40 seats) +Amount owed is $1,730.00 +You earned 47 credits