Code Monkey home page Code Monkey logo

Comments (3)

smaillet avatar smaillet commented on May 26, 2024

Can you elaborate on the exact problem here? The test code validates some exception messages explicitly generated by Llvm.NET library (not MScorlib or other framework libs) the reason is to ensure the correct handling of errors given invalid input. Since Most such cases ultimately generate an ArgumentException the tests need to delve into the exception a bit to verify that the correct information is provided to help a developer fix their usage of the API.

At this point in time Llvm.NET itself uses hardcoded strings and not Locale specific resources for the exception messages.

from llvm.net.

nbsn2 avatar nbsn2 commented on May 26, 2024

Tested in français

France


Failed   MultiContextLinkTest
Error Message:
   Assert.AreEqual failed. Expected:<Linking modules from different contexts is not allowed
Parameter name: otherModule>. Actual:<Linking modules from different contexts is not allowed
Nom du paramètre?: otherModule>. Could not verify the exception message.
Stack Trace:
   à Llvm.NET.NativeModule.Link(NativeModule otherModule) dans C:\Llvm.NET-master\src\Llvm.NET\Module.cs:ligne 301
   à Llvm.NET.Tests.ModuleTests.MultiContextLinkTest() dans C:\Llvm.NET-master\src\Llvm.NETTests\ModuleTests.cs:ligne 145
Total tests: 78. Passed: 72. Failed: 1. Skipped: 5.
Test Run Failed.
Test execution time: 6,3781 Seconds
One or more tests failed - Build should fail
Au caractère C:\Llvm.NET-master\Invoke-UnitTests.ps1:56 : 5
+     throw "One or more tests failed - Build should fail"
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (One or more tes...ild should fail:String) [], RuntimeException
    + FullyQualifiedErrorId : One or more tests failed - Build should fail

Tested in 日本語

Failed   MultiContextLinkTest
Error Message:
   Assert.AreEqual failed. Expected:<Linking modules from different contexts is not allowed
Parameter name: otherModule>. Actual:<Linking modules from different contexts is not allowed
パラメーター名:otherModule>. Could not verify the exception message.
Stack Trace:
   場所 Llvm.NET.NativeModule.Link(NativeModule otherModule) 場所 C:\Llvm.NET-master\src\Llvm.NET\Module.cs:行 296
   場所 Llvm.NET.Tests.ModuleTests.MultiContextLinkTest() 場所 C:\Llvm.NET-master\src\Llvm.NETTests\ModuleTests.cs:行 145
Total tests: 78. Passed: 72. Failed: 1. Skipped: 5.
Test Run Failed.
Test execution time: 6.6396 Seconds
One or more tests failed - Build should fail
At C:\Llvm.NET-master\Invoke-UnitTests.ps1:56 char:5
+     throw "One or more tests failed - Build should fail"
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (One or more tes...ild should fail:String) [], RuntimeException
    + FullyQualifiedErrorId : One or more tests failed - Build should fail

from llvm.net.

smaillet avatar smaillet commented on May 26, 2024

Ah, thanks for the clarification. I missed that would be checking strings owned by the platform. That's something that should be fixed in the tests.

from llvm.net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.