|  | 
| 1 | 1 | #! /usr/bin/env python | 
| 2 | 2 | # Remarshal, a utility to convert between serialization formats. | 
| 3 |  | -# Copyright (c) 2014-2020, 2023 D. Bohdan | 
|  | 3 | +# Copyright (c) 2014-2020, 2023-2024 D. Bohdan | 
| 4 | 4 | # License: MIT | 
| 5 | 5 | 
 | 
| 6 | 6 | from __future__ import annotations | 
| @@ -364,6 +364,11 @@ def test_binary_to_yaml(self, convert_and_read) -> None: | 
| 364 | 364 |     def test_binary_to_cbor(self, convert_and_read) -> None: | 
| 365 | 365 |         convert_and_read("bin.msgpack", "msgpack", "cbor") | 
| 366 | 366 | 
 | 
|  | 367 | +    def test_yaml_null(self, convert_and_read) -> None: | 
|  | 368 | +        output = convert_and_read("null.json", "json", "yaml") | 
|  | 369 | +        reference = read_file("null.yaml") | 
|  | 370 | +        assert output == reference | 
|  | 371 | + | 
| 367 | 372 |     def test_yaml_style_default(self, convert_and_read) -> None: | 
| 368 | 373 |         output = convert_and_read("long-line.json", "json", "yaml") | 
| 369 | 374 |         reference = read_file("long-line-default.yaml") | 
| @@ -544,6 +549,16 @@ def test_yaml2toml_bool_null_key(self, convert_and_read) -> None: | 
| 544 | 549 |         reference = read_file("bool-null-key.toml") | 
| 545 | 550 |         assert output == reference | 
| 546 | 551 | 
 | 
|  | 552 | +    def test_yaml2yaml_bool_null_key(self, convert_and_read) -> None: | 
|  | 553 | +        output = convert_and_read( | 
|  | 554 | +            "bool-null-key.yaml", | 
|  | 555 | +            "yaml", | 
|  | 556 | +            "yaml", | 
|  | 557 | +        ) | 
|  | 558 | +        reference = read_file("bool-null-key.yaml") | 
|  | 559 | + | 
|  | 560 | +        assert output == reference.lower() | 
|  | 561 | + | 
| 547 | 562 |     def test_yaml2toml_timestamp_key(self, convert_and_read) -> None: | 
| 548 | 563 |         output = convert_and_read( | 
| 549 | 564 |             "timestamp-key.yaml", | 
|  | 
0 commit comments