Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tdt4100
v2022
students
Commits
748c745d
Commit
748c745d
authored
Apr 27, 2022
by
Magnus Schjølberg
Browse files
Final fix for windows (selfcheckouttest)
parent
485c0e33
Changes
3
Hide whitespace changes
Inline
Side-by-side
selfcheckout-example/src/main/resources/selfcheckout/receipts/testing/invalid_receipt.txt
deleted
100644 → 0
View file @
485c0e33
Egg, 6 stk;;breakfast
;90.0;diary
;90.0;
;;
Leverpostei;
\ No newline at end of file
selfcheckout-example/src/main/resources/selfcheckout/receipts/testing/test_receipt.txt
deleted
100644 → 0
View file @
485c0e33
null
Egg, 6 stk;41.59;breakfast
Hvitost, Synnøve;90.0;diary
Leverpostei;29.99;breakfast
\ No newline at end of file
selfcheckout-example/src/test/java/selfcheckout/ReceiptHandlerTest.java
View file @
748c745d
...
...
@@ -24,7 +24,7 @@ public abstract class ReceiptHandlerTest {
Egg, 6 stk;41.59;breakfast
Hvitost, Synnøve;90.0;diary
Leverpostei;29.99;breakfast
"""
.
replaceAll
(
"\\R"
,
"\n"
);
"""
.
replaceAll
(
"\\R"
,
System
.
getProperty
(
"line.separator"
)
);
private
static
final
String
invalid_receipt_file_content
=
"""
Egg, 6 stk;;breakfast
...
...
@@ -32,7 +32,7 @@ public abstract class ReceiptHandlerTest {
;90.0;
;;
Leverpostei;
"""
.
replaceAll
(
"\\R"
,
"\n"
);
"""
.
replaceAll
(
"\\R"
,
System
.
getProperty
(
"line.separator"
)
);
protected
abstract
IReceiptHandler
getReceiptHandler
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment