Skip to content

Commit

Permalink
test: run on y24 lts
Browse files Browse the repository at this point in the history
  • Loading branch information
simPod committed Jan 15, 2025
1 parent b680a8d commit d5236a5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ jobs:
- "23.7"
- "23.8"
- "23.9"
- "24.3"
- "24.8"
dependency-versions:
- "highest"
env:
Expand Down
28 changes: 16 additions & 12 deletions tests/Param/ParamValueConverterRegistryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ final class ParamValueConverterRegistryTest extends TestCaseBase
{
use WithClient;

private const VersionLineString = 2309;
private const VersionIntervalJson = 2301;

/** @var array<string> */
Expand Down Expand Up @@ -239,19 +240,22 @@ public static function providerConvert(): Generator
yield 'Point (array)' => ['Point', [1, 2], '(1,2)'];
yield 'Ring' => ['Ring', '[(1,2),(3,4)]', '[(1,2),(3,4)]'];
yield 'Ring (array)' => ['Ring', [[1, 2], [3, 4]], '[(1,2),(3,4)]'];
yield 'LineString' => ['LineString', '[(1,2),(3,4)]', '[(1,2),(3,4)]'];
yield 'LineString (array)' => ['LineString', [[1, 2], [3, 4]], '[(1,2),(3,4)]'];
yield 'MultiLineString' => [
'MultiLineString',
'[[(1,2),(3,4)],[(5,6),(7,8)]]',
'[[(1,2),(3,4)],[(5,6),(7,8)]]',
];

yield 'MultiLineString (array)' => [
'MultiLineString',
[[[1, 2], [3, 4]], [[5, 6], [7, 8]]],
'[[(1,2),(3,4)],[(5,6),(7,8)]]',
];
if (ClickHouseVersion::get() >= self::VersionLineString) {
yield 'LineString' => ['LineString', '[(1,2),(3,4)]', '[(1,2),(3,4)]'];
yield 'LineString (array)' => ['LineString', [[1, 2], [3, 4]], '[(1,2),(3,4)]'];
yield 'MultiLineString' => [
'MultiLineString',
'[[(1,2),(3,4)],[(5,6),(7,8)]]',
'[[(1,2),(3,4)],[(5,6),(7,8)]]',
];

yield 'MultiLineString (array)' => [
'MultiLineString',
[[[1, 2], [3, 4]], [[5, 6], [7, 8]]],
'[[(1,2),(3,4)],[(5,6),(7,8)]]',
];
}

yield 'Polygon' => ['Polygon', '[[(1,2),(3,4)],[(5,6),(7,8)]]', '[[(1,2),(3,4)],[(5,6),(7,8)]]'];
yield 'Polygon (array)' => ['Polygon', [[[1, 2], [3, 4]], [[5, 6], [7, 8]]], '[[(1,2),(3,4)],[(5,6),(7,8)]]'];
Expand Down

0 comments on commit d5236a5

Please sign in to comment.