chung-leong / zigar

Enable the use of Zig code in JavaScript project
https://chung-leong.github.io/zigar/
MIT License
177 stars 2 forks source link

Rollup plugin test failures #409

Closed chung-leong closed 2 months ago

chung-leong commented 2 months ago
  1) Integration tests (rollup-plugin-zigar, Debug)
       Type handling
         Opaque
           should return opaque pointer:

      AssertionError: expected 'as-return-value.Struct{ .number1 = 12…' to equal 'as-return-value.Struct{ .number1 = 12…'
      + expected - actual

      -as-return-value.Struct{ .number1 = 123, .number2 = 0 }
      +as-return-value.Struct{ .number1 = 123, .number2 = 456 }

      at Context.<anonymous> (file:///home/cleong/zigar/zigar-compiler/test/integration/type-handling/opaque/tests.js:39:23)

  2) Integration tests (rollup-plugin-zigar, Debug)
       Type handling
         Pointer
           should import pointer as static variables:

      AssertionError: expected 'H' to equal 'Hello world'
      + expected - actual

      -H
      +Hello world

      at Context.<anonymous> (file:///home/cleong/zigar/zigar-compiler/test/integration/type-handling/pointer/tests.js:74:25)