From 6228c5ba561df9517d24c34da1c47fa204023362 Mon Sep 17 00:00:00 2001 From: prakanth <50439067+prakanth97@users.noreply.github.com> Date: Thu, 21 Dec 2023 13:55:50 +0530 Subject: [PATCH] Fix test failures in windows --- ballerina/tests/stream_namespace_test.bal | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ballerina/tests/stream_namespace_test.bal b/ballerina/tests/stream_namespace_test.bal index 3369e9e..dc514f2 100644 --- a/ballerina/tests/stream_namespace_test.bal +++ b/ballerina/tests/stream_namespace_test.bal @@ -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); @@ -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);