Skip to content

Commit

Permalink
Fix test failures in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
prakanth97 committed Dec 21, 2023
1 parent 68dc4de commit 6228c5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ballerina/tests/stream_namespace_test.bal
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ function testNamespaceInvoiceFullPlain() returns error? {
test:assertEquals(invoice.products.product[0].length(), 5, "Product 1 field count mismatched");
test:assertEquals(invoice.products.product[0].id, 1);
test:assertEquals(invoice.products.product[0].name, "Product 1");
test:assertEquals(regexp:replaceAll(re `[\r\n]`, invoice.products.product[0].description, "\n"),
test:assertEquals(regexp:replaceAll(re `\r`, invoice.products.product[0].description, ""),
"This is the description for\n Product 1.\n ");
test:assertEquals(invoice.products.product[0].price.length(), 2, "Price 1 price field count mismatched");
test:assertEquals(invoice.products.product[0].price.\#content, 57.70d);
Expand All @@ -210,7 +210,7 @@ function testNamespaceInvoiceFullPlain() returns error? {
test:assertEquals(invoice.products.product[1].length(), 5, "Product 2 field count mismatched");
test:assertEquals(invoice.products.product[1].id, 2);
test:assertEquals(invoice.products.product[1].name, "Product 2");
test:assertEquals(regexp:replaceAll(re `[\r\n]`, invoice.products.product[1].description, "\n"),
test:assertEquals(regexp:replaceAll(re `\r`, invoice.products.product[1].description, ""),
"This is the description for\n Product 2.\n ");
test:assertEquals(invoice.products.product[0].price.length(), 2, "Price 1 price field count mismatched");
test:assertEquals(invoice.products.product[1].price.\#content, 6312.36d);
Expand Down

0 comments on commit 6228c5b

Please sign in to comment.