mirror of
https://github.com/ysoftdevs/Theatrical-Players-Refactoring-Kata.git
synced 2026-04-24 01:38:55 +02:00
added Go variant
- using homegrown approval test function
This commit is contained in:
1
go/theatre/testdata/.gitignore
vendored
Normal file
1
go/theatre/testdata/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*.out.*
|
||||
6
go/theatre/testdata/TestPrinterPrintByApproval/1.approved.txt
vendored
Normal file
6
go/theatre/testdata/TestPrinterPrintByApproval/1.approved.txt
vendored
Normal file
@@ -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
|
||||
15
go/theatre/testdata/TestPrinterPrintByApproval/1.in.json
vendored
Normal file
15
go/theatre/testdata/TestPrinterPrintByApproval/1.in.json
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"plays": [
|
||||
{ "id": "hamlet", "play": { "name": "Hamlet", "type": "tragedy" } },
|
||||
{ "id": "as-like", "play": { "name": "As You Like It", "type": "comedy" } },
|
||||
{ "id": "othello", "play": { "name": "Othello", "type": "tragedy" } }
|
||||
],
|
||||
"invoice": {
|
||||
"customer": "BigCo",
|
||||
"performances": [
|
||||
{"playId": "hamlet", "audience": 55 },
|
||||
{"playId": "as-like", "audience": 35 },
|
||||
{"playId": "othello", "audience": 40 }
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user