Skip to content

v0.7.1

Compare
Choose a tag to compare
@cable8mm cable8mm released this 09 Nov 00:31
a7d5169

Feature : Setcode default value. The patch apply setcode default value.

    public function test_세트코드_축약버전_파싱이_되는지()
    {
        // Arrange
        $input = 'set107253x1ZZ102257ZZ104128x2';
        $expect = [
            '107253' => 1,
            '102257' => 1, // 이 값은 코드에 없기 때문에 1(default value)로 처리됨.
            '104128' => 2,
        ];

        // Act
        $parsed = (new GoodCodeParser($input))->with(SetGood::class)->get();

        // Assert
        $this->assertEquals($parsed, $expect);
    }