|
@@ -40,11 +40,11 @@ describe("correct behavior", () => {
|
|
|
});
|
|
|
|
|
|
test("numeric keys", () => {
|
|
|
- const hex = {0x10: "16"};
|
|
|
- const oct = {0o10: "8"};
|
|
|
- const bin = {0b10: "2"};
|
|
|
- const float = {.5: "0.5"};
|
|
|
-
|
|
|
+ const hex = { 0x10: "16" };
|
|
|
+ const oct = { 0o10: "8" };
|
|
|
+ const bin = { 0b10: "2" };
|
|
|
+ const float = { 0.5: "0.5" };
|
|
|
+
|
|
|
expect(hex["16"]).toBe("16");
|
|
|
expect(oct["8"]).toBe("8");
|
|
|
expect(bin["2"]).toBe("2");
|