Skip to content

Commit 77fcdd4

Browse files
authored
[TASK] Test parsing arithmetic operators in clamp function (#620)
Closes #619. The test passes, whereas without the change from #607, it does not. Co-authored-by: Jake Hotson <jake.github@qzdesign.co.uk>
1 parent 99202fb commit 77fcdd4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/Value/ValueTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ public static function provideCssFunctionTemplates(): array
7272
'to be parsed' => 'max(300px, %s);',
7373
'expected' => 'max(300px,%s)',
7474
],
75+
'clamp' => [
76+
'to be parsed' => 'clamp(2.19rem, %s, 2.5rem);',
77+
'expected' => 'clamp(2.19rem,%s,2.5rem)',
78+
],
7579
];
7680
}
7781

0 commit comments

Comments
 (0)