diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index cdb1b17..c0b2a61 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -11,12 +11,10 @@ jobs: # Run tests on all OS's and HHVM versions, even if one fails fail-fast: false matrix: - os: [ ubuntu ] + os: [ ubuntu-20.04 ] hhvm: - '4.168' - - latest - - nightly - runs-on: ${{matrix.os}}-latest + runs-on: ${{matrix.os}} steps: - uses: actions/checkout@v2 - name: Create branch for version alias diff --git a/tests/clean/provider/DataProviderTest.php b/tests/clean/provider/DataProviderTest.php index 79c550c..ae7207d 100644 --- a/tests/clean/provider/DataProviderTest.php +++ b/tests/clean/provider/DataProviderTest.php @@ -34,6 +34,15 @@ public function testSimple(Traversable $traversable): void { expect(Str\join($traversable, '-'))->toBeSame('the-quick-brown-fox-1'); } + public function provideWithPeriod()[]: dict { + return dict['per.iod' => tuple('str')]; + } + + <> + public function testPeriodInKey(string $v): void { + expect($v)->toEqual('str'); + } + public function provideMultipleArgs(): vec<(int, int)> { return vec[ tuple(1, 2), diff --git a/tests/dirty/DataProviderWithPeriodInKeyTest.php b/tests/dirty/DataProviderWithPeriodInKeyTest.php new file mode 100644 index 0000000..d1493e2 --- /dev/null +++ b/tests/dirty/DataProviderWithPeriodInKeyTest.php @@ -0,0 +1,24 @@ +> +final class DataProviderWithPeriodInKeyTest extends HackTest { + public function provideWithPeriod()[]: dict { + return dict['per.iod' => tuple('str')]; + } + + <> + public function testPeriodInKey(string $v): void { + expect($v)->toNotEqual('str'); + } +}