summaryrefslogtreecommitdiff
path: root/std/testing/format_test.ts
diff options
context:
space:
mode:
authorKhải <hvksmr1996@gmail.com>2020-04-05 00:13:37 +0700
committerGitHub <noreply@github.com>2020-04-04 13:13:37 -0400
commit788a6abfd391b8899d28552a9f192d9aaee91347 (patch)
treeaf6895f8c1bd06b9dcd6336986bbbf78d23e378b /std/testing/format_test.ts
parentfaa0f520cf3ad03eef51d9a236202e181fe4ea69 (diff)
fix(std/testing): formatting bigint (#4626)
Diffstat (limited to 'std/testing/format_test.ts')
-rw-r--r--std/testing/format_test.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/std/testing/format_test.ts b/std/testing/format_test.ts
index eac5b7d84..f4065ff92 100644
--- a/std/testing/format_test.ts
+++ b/std/testing/format_test.ts
@@ -581,6 +581,14 @@ test({
});
test({
+ name: "prints a bigint",
+ fn(): void {
+ const val = 12345n;
+ assertEquals(format(val), "12345n");
+ },
+});
+
+test({
name: "prints undefined",
fn(): void {
const val = undefined;