From 2fb5e352089058dc4bc7ec827bfb6802f904a045 Mon Sep 17 00:00:00 2001 From: Sarah Marshall Date: Fri, 14 Aug 2020 16:16:35 -0700 Subject: [PATCH] Use culture-dependent string for decimals in RuntimeMetadataTests --- src/Simulation/Simulators.Tests/RuntimeMetadataTests.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Simulation/Simulators.Tests/RuntimeMetadataTests.cs b/src/Simulation/Simulators.Tests/RuntimeMetadataTests.cs index e9f6e69e626..4fd30fa9b61 100644 --- a/src/Simulation/Simulators.Tests/RuntimeMetadataTests.cs +++ b/src/Simulation/Simulators.Tests/RuntimeMetadataTests.cs @@ -262,7 +262,7 @@ public void Ry() var expected = new RuntimeMetadata() { Label = "Ry", - FormattedNonQubitArgs = "(2.1)", + FormattedNonQubitArgs = "(" + 2.1 + ")", IsAdjoint = false, IsControlled = false, IsMeasurement = false, @@ -513,7 +513,7 @@ public void FooUDTOp() var expected = new RuntimeMetadata() { Label = "FooUDTOp", - FormattedNonQubitArgs = "(\"bar\", (2.1))", + FormattedNonQubitArgs = "(\"bar\", (" + 2.1 + "))", IsAdjoint = false, IsControlled = false, IsMeasurement = false, @@ -760,7 +760,7 @@ public void PartialRy() var expected = new RuntimeMetadata() { Label = "Ry", - FormattedNonQubitArgs = "(2.1)", + FormattedNonQubitArgs = "(" + 2.1 + ")", IsAdjoint = false, IsControlled = false, IsMeasurement = false, @@ -783,7 +783,7 @@ public void PartialUDT() var expected = new RuntimeMetadata() { Label = "FooUDT", - FormattedNonQubitArgs = "(\"bar\", (2.1))", + FormattedNonQubitArgs = "(\"bar\", (" + 2.1 + "))", IsAdjoint = false, IsControlled = false, IsMeasurement = false,