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

Alsatian do not know how to serialize a BigInt #792

Open
yukulele opened this issue Nov 23, 2020 · 1 comment · May be fixed by #891
Open

Alsatian do not know how to serialize a BigInt #792

yukulele opened this issue Nov 23, 2020 · 1 comment · May be fixed by #891
Labels

Comments

@yukulele
Copy link

I get an error if I work with BigInt.

import { Expect, Test, TestCase, TestFixture } from 'alsatian'

@TestFixture("my tests")
export class Tests {
  @TestCase('2', 2)
  @TestCase('3', BigInt('3'))
  @Test('test1')
  public test1(a1: any, a2: any) {
    Expect(a1.toString()).toBe(a2.toString())
  }
}

I get this error:

> alsatian ./tests/test.ts

0% complete
Do not know how to serialize a BigInt
@jamesadarich
Copy link
Member

Good find, looks like this is a bug and we'd accept a PR 👍

yukulele added a commit to yukulele/alsatian that referenced this issue Jul 15, 2021
add support to BigInt

fix  alsatian-test#792
@yukulele yukulele linked a pull request Jul 15, 2021 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants