Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FS-1142] Extended numeric literal #17242

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

update test; change function calling condition

171914e
Select commit
Loading
Failed to load commit list.
Draft

[FS-1142] Extended numeric literal #17242

update test; change function calling condition
171914e
Select commit
Loading
Failed to load commit list.
Azure Pipelines / fsharp-ci failed May 24, 2024 in 47m 44s

Build #20240524.35 had test failures

Details

Tests

  • Failed: 28 (0.09%)
  • Passed: 29,543 (95.67%)
  • Other: 1,308 (4.24%)
  • Total: 30,879

Annotations

Check failure on line 6118 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / fsharp-ci

Build log #L6118

(NETCORE_ENGINEERING_TELEMETRY=Test) Error running tests (exit code '1').

Check failure on line 6120 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / fsharp-ci

Build log #L6120

Bash exited with code '1'.

Check failure on line 7053 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / fsharp-ci

Build log #L7053

(NETCORE_ENGINEERING_TELEMETRY=Test) Failure running tests

Check failure on line 7054 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / fsharp-ci

Build log #L7054

Cmd.exe exited with code '1'.

Check failure on line 1 in ErrorMessages.Numeric Literals.Invalid Numeric Literals In F#8

See this annotation in the file changed.

@azure-pipelines azure-pipelines / fsharp-ci

ErrorMessages.Numeric Literals.Invalid Numeric Literals In F#8

NUnit.Framework.AssertionException :   Mismatched error message:
Expecting: (Error 1156, Line 1, Col 9, Line 1, Col 14, "Feature 'Underscores in numeric literal after prefix or before suffix and Hexadecimal, octal, binary and floating custom numeric literal' is not available in F# 8.0. Please use language version 'PREVIEW' or greater.")
Actual:    (Error 3350, Line 1, Col 9, Line 1, Col 14, "Feature 'Underscores in numeric literal after prefix or before suffix and Hexadecimal, octal, binary and floating custom numeric literal' is not available in F# 8.0. Please use language version 'PREVIEW' or greater.")

  String lengths are both 262. Strings differ at index 7.
  Expected: "(Error 1156, Line 1, Col 9, Line 1, Col 14, "Feature 'Undersc..."
  But was:  "(Error 3350, Line 1, Col 9, Line 1, Col 14, "Feature 'Undersc..."
  ------------------^
Raw output
   at NUnit.Framework.Assert.ReportFailure(String message)
   at NUnit.Framework.Assert.ReportFailure(ConstraintResult result, String message, Object[] args)
   at NUnit.Framework.Assert.That[TActual](TActual actual, IResolveConstraint expression, String message, Object[] args)
   at NUnit.Framework.Assert.AreEqual(Object expected, Object actual, String message, Object[] args)
   at FSharp.Test.Compiler.Assertions.assertErrors@1496.Invoke(String actual, String expected) in /home/vsts/work/1/s/tests/FSharp.Test.Utilities/Compiler.fs:line 1498
   at Microsoft.FSharp.Collections.ListModule.loop@248-27[T1,T2](FSharpFunc`3 f, FSharpList`1 list1, FSharpList`1 list2) in /home/vsts/work/1/s/src/FSharp.Core/list.fs:line 252
   at Microsoft.FSharp.Collections.ListModule.Iterate2[T1,T2](FSharpFunc`2 action, FSharpList`1 list1, FSharpList`1 list2) in /home/vsts/work/1/s/src/FSharp.Core/list.fs:line 246
   at FSharp.Test.Compiler.Assertions.assertErrors(String what, Int32 libAdjust, FSharpList`1 source, FSharpList`1 expected) in /home/vsts/work/1/s/tests/FSharp.Test.Utilities/Compiler.fs:line 1496
   at FSharp.Test.Compiler.Assertions.assertResultsCategory(String what, FSharpFunc`2 selector, FSharpList`1 expected, CompilationResult result) in /home/vsts/work/1/s/tests/FSharp.Test.Utilities/Compiler.fs:line 1531
   at FSharp.Test.Compiler.Assertions.withResultsIgnoreNativeRange(FSharpList`1 expectedResults, CompilationResult result) in /home/vsts/work/1/s/tests/FSharp.Test.Utilities/Compiler.fs:line 1535
   at FSharp.Test.Compiler.Assertions.withDiagnostics(FSharpList`1 expected, CompilationResult result) in /home/vsts/work/1/s/tests/FSharp.Test.Utilities/Compiler.fs:line 1553
   at FSharp.Test.Compiler.Assertions.withSingleDiagnostic(ErrorType expected_0, Line expected_1, Col expected_2, Line expected_3, Col expected_4, String expected_5, CompilationResult result) in /home/vsts/work/1/s/tests/FSharp.Test.Utilities/Compiler.fs:line 1556
   at ErrorMessages.Numeric Literals.Invalid Numeric Literals In F#8(String literal) in /home/vsts/work/1/s/tests/FSharp.Compiler.ComponentTests/ErrorMessages/InvalidNumericLiteralTests.fs:line 42

   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)

Check failure on line 1 in ErrorMessages.Numeric Literals.Invalid Numeric Literals In F#8

See this annotation in the file changed.

@azure-pipelines azure-pipelines / fsharp-ci

ErrorMessages.Numeric Literals.Invalid Numeric Literals In F#8

NUnit.Framework.AssertionException :   Mismatched error message:
Expecting: (Error 1156, Line 1, Col 9, Line 1, Col 14, "Feature 'Underscores in numeric literal after prefix or before suffix and Hexadecimal, octal, binary and floating custom numeric literal' is not available in F# 8.0. Please use language version 'PREVIEW' or greater.")
Actual:    (Error 3350, Line 1, Col 9, Line 1, Col 14, "Feature 'Underscores in numeric literal after prefix or before suffix and Hexadecimal, octal, binary and floating custom numeric literal' is not available in F# 8.0. Please use language version 'PREVIEW' or greater.")

  String lengths are both 262. Strings differ at index 7.
  Expected: "(Error 1156, Line 1, Col 9, Line 1, Col 14, "Feature 'Undersc..."
  But was:  "(Error 3350, Line 1, Col 9, Line 1, Col 14, "Feature 'Undersc..."
  ------------------^
Raw output
   at NUnit.Framework.Assert.ReportFailure(String message)
   at NUnit.Framework.Assert.ReportFailure(ConstraintResult result, String message, Object[] args)
   at NUnit.Framework.Assert.That[TActual](TActual actual, IResolveConstraint expression, String message, Object[] args)
   at NUnit.Framework.Assert.AreEqual(Object expected, Object actual, String message, Object[] args)
   at FSharp.Test.Compiler.Assertions.assertErrors@1496.Invoke(String actual, String expected) in /home/vsts/work/1/s/tests/FSharp.Test.Utilities/Compiler.fs:line 1498
   at Microsoft.FSharp.Collections.ListModule.loop@248-27[T1,T2](FSharpFunc`3 f, FSharpList`1 list1, FSharpList`1 list2) in /home/vsts/work/1/s/src/FSharp.Core/list.fs:line 252
   at Microsoft.FSharp.Collections.ListModule.Iterate2[T1,T2](FSharpFunc`2 action, FSharpList`1 list1, FSharpList`1 list2) in /home/vsts/work/1/s/src/FSharp.Core/list.fs:line 246
   at FSharp.Test.Compiler.Assertions.assertErrors(String what, Int32 libAdjust, FSharpList`1 source, FSharpList`1 expected) in /home/vsts/work/1/s/tests/FSharp.Test.Utilities/Compiler.fs:line 1496
   at FSharp.Test.Compiler.Assertions.assertResultsCategory(String what, FSharpFunc`2 selector, FSharpList`1 expected, CompilationResult result) in /home/vsts/work/1/s/tests/FSharp.Test.Utilities/Compiler.fs:line 1531
   at FSharp.Test.Compiler.Assertions.withResultsIgnoreNativeRange(FSharpList`1 expectedResults, CompilationResult result) in /home/vsts/work/1/s/tests/FSharp.Test.Utilities/Compiler.fs:line 1535
   at FSharp.Test.Compiler.Assertions.withDiagnostics(FSharpList`1 expected, CompilationResult result) in /home/vsts/work/1/s/tests/FSharp.Test.Utilities/Compiler.fs:line 1553
   at FSharp.Test.Compiler.Assertions.withSingleDiagnostic(ErrorType expected_0, Line expected_1, Col expected_2, Line expected_3, Col expected_4, String expected_5, CompilationResult result) in /home/vsts/work/1/s/tests/FSharp.Test.Utilities/Compiler.fs:line 1556
   at ErrorMessages.Numeric Literals.Invalid Numeric Literals In F#8(String literal) in /home/vsts/work/1/s/tests/FSharp.Compiler.ComponentTests/ErrorMessages/InvalidNumericLiteralTests.fs:line 42
   at InvokeStub_Numeric Literals.Invalid Numeric Literals In F#8(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Check failure on line 1 in ErrorMessages.Numeric Literals.Invalid Numeric Literals In F#8

See this annotation in the file changed.

@azure-pipelines azure-pipelines / fsharp-ci

ErrorMessages.Numeric Literals.Invalid Numeric Literals In F#8

NUnit.Framework.AssertionException :   Mismatched error message:
Expecting: (Error 1156, Line 1, Col 9, Line 1, Col 22, "Feature 'Underscores in numeric literal after prefix or before suffix and Hexadecimal, octal, binary and floating custom numeric literal' is not available in F# 8.0. Please use language version 'PREVIEW' or greater.")
Actual:    (Error 3350, Line 1, Col 9, Line 1, Col 22, "Feature 'Underscores in numeric literal after prefix or before suffix and Hexadecimal, octal, binary and floating custom numeric literal' is not available in F# 8.0. Please use language version 'PREVIEW' or greater.")

  String lengths are both 262. Strings differ at index 7.
  Expected: "(Error 1156, Line 1, Col 9, Line 1, Col 22, "Feature 'Undersc..."
  But was:  "(Error 3350, Line 1, Col 9, Line 1, Col 22, "Feature 'Undersc..."
  ------------------^
Raw output
   at NUnit.Framework.Assert.ReportFailure(String message)
   at NUnit.Framework.Assert.ReportFailure(ConstraintResult result, String message, Object[] args)
   at NUnit.Framework.Assert.That[TActual](TActual actual, IResolveConstraint expression, String message, Object[] args)
   at NUnit.Framework.Assert.AreEqual(Object expected, Object actual, String message, Object[] args)
   at FSharp.Test.Compiler.Assertions.assertErrors@1496.Invoke(String actual, String expected) in /home/vsts/work/1/s/tests/FSharp.Test.Utilities/Compiler.fs:line 1498
   at Microsoft.FSharp.Collections.ListModule.loop@248-27[T1,T2](FSharpFunc`3 f, FSharpList`1 list1, FSharpList`1 list2) in /home/vsts/work/1/s/src/FSharp.Core/list.fs:line 252
   at Microsoft.FSharp.Collections.ListModule.Iterate2[T1,T2](FSharpFunc`2 action, FSharpList`1 list1, FSharpList`1 list2) in /home/vsts/work/1/s/src/FSharp.Core/list.fs:line 246
   at FSharp.Test.Compiler.Assertions.assertErrors(String what, Int32 libAdjust, FSharpList`1 source, FSharpList`1 expected) in /home/vsts/work/1/s/tests/FSharp.Test.Utilities/Compiler.fs:line 1496
   at FSharp.Test.Compiler.Assertions.assertResultsCategory(String what, FSharpFunc`2 selector, FSharpList`1 expected, CompilationResult result) in /home/vsts/work/1/s/tests/FSharp.Test.Utilities/Compiler.fs:line 1531
   at FSharp.Test.Compiler.Assertions.withResultsIgnoreNativeRange(FSharpList`1 expectedResults, CompilationResult result) in /home/vsts/work/1/s/tests/FSharp.Test.Utilities/Compiler.fs:line 1535
   at FSharp.Test.Compiler.Assertions.withDiagnostics(FSharpList`1 expected, CompilationResult result) in /home/vsts/work/1/s/tests/FSharp.Test.Utilities/Compiler.fs:line 1553
   at FSharp.Test.Compiler.Assertions.withSingleDiagnostic(ErrorType expected_0, Line expected_1, Col expected_2, Line expected_3, Col expected_4, String expected_5, CompilationResult result) in /home/vsts/work/1/s/tests/FSharp.Test.Utilities/Compiler.fs:line 1556
   at ErrorMessages.Numeric Literals.Invalid Numeric Literals In F#8(String literal) in /home/vsts/work/1/s/tests/FSharp.Compiler.ComponentTests/ErrorMessages/InvalidNumericLiteralTests.fs:line 42
   at InvokeStub_Numeric Literals.Invalid Numeric Literals In F#8(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Check failure on line 1 in ErrorMessages.Numeric Literals.Invalid Numeric Literals In F#8

See this annotation in the file changed.

@azure-pipelines azure-pipelines / fsharp-ci

ErrorMessages.Numeric Literals.Invalid Numeric Literals In F#8

NUnit.Framework.AssertionException :   Mismatched error message:
Expecting: (Error 1156, Line 1, Col 9, Line 1, Col 15, "Feature 'Underscores in numeric literal after prefix or before suffix and Hexadecimal, octal, binary and floating custom numeric literal' is not available in F# 8.0. Please use language version 'PREVIEW' or greater.")
Actual:    (Error 3350, Line 1, Col 9, Line 1, Col 15, "Feature 'Underscores in numeric literal after prefix or before suffix and Hexadecimal, octal, binary and floating custom numeric literal' is not available in F# 8.0. Please use language version 'PREVIEW' or greater.")

  String lengths are both 262. Strings differ at index 7.
  Expected: "(Error 1156, Line 1, Col 9, Line 1, Col 15, "Feature 'Undersc..."
  But was:  "(Error 3350, Line 1, Col 9, Line 1, Col 15, "Feature 'Undersc..."
  ------------------^
Raw output
   at NUnit.Framework.Assert.ReportFailure(String message)
   at NUnit.Framework.Assert.ReportFailure(ConstraintResult result, String message, Object[] args)
   at NUnit.Framework.Assert.That[TActual](TActual actual, IResolveConstraint expression, String message, Object[] args)
   at NUnit.Framework.Assert.AreEqual(Object expected, Object actual, String message, Object[] args)
   at FSharp.Test.Compiler.Assertions.assertErrors@1496.Invoke(String actual, String expected) in /home/vsts/work/1/s/tests/FSharp.Test.Utilities/Compiler.fs:line 1498
   at Microsoft.FSharp.Collections.ListModule.loop@248-27[T1,T2](FSharpFunc`3 f, FSharpList`1 list1, FSharpList`1 list2) in /home/vsts/work/1/s/src/FSharp.Core/list.fs:line 252
   at Microsoft.FSharp.Collections.ListModule.Iterate2[T1,T2](FSharpFunc`2 action, FSharpList`1 list1, FSharpList`1 list2) in /home/vsts/work/1/s/src/FSharp.Core/list.fs:line 246
   at FSharp.Test.Compiler.Assertions.assertErrors(String what, Int32 libAdjust, FSharpList`1 source, FSharpList`1 expected) in /home/vsts/work/1/s/tests/FSharp.Test.Utilities/Compiler.fs:line 1496
   at FSharp.Test.Compiler.Assertions.assertResultsCategory(String what, FSharpFunc`2 selector, FSharpList`1 expected, CompilationResult result) in /home/vsts/work/1/s/tests/FSharp.Test.Utilities/Compiler.fs:line 1531
   at FSharp.Test.Compiler.Assertions.withResultsIgnoreNativeRange(FSharpList`1 expectedResults, CompilationResult result) in /home/vsts/work/1/s/tests/FSharp.Test.Utilities/Compiler.fs:line 1535
   at FSharp.Test.Compiler.Assertions.withDiagnostics(FSharpList`1 expected, CompilationResult result) in /home/vsts/work/1/s/tests/FSharp.Test.Utilities/Compiler.fs:line 1553
   at FSharp.Test.Compiler.Assertions.withSingleDiagnostic(ErrorType expected_0, Line expected_1, Col expected_2, Line expected_3, Col expected_4, String expected_5, CompilationResult result) in /home/vsts/work/1/s/tests/FSharp.Test.Utilities/Compiler.fs:line 1556
   at ErrorMessages.Numeric Literals.Invalid Numeric Literals In F#8(String literal) in /home/vsts/work/1/s/tests/FSharp.Compiler.ComponentTests/ErrorMessages/InvalidNumericLiteralTests.fs:line 42
   at InvokeStub_Numeric Literals.Invalid Numeric Literals In F#8(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)