We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5d8f72 commit 473916aCopy full SHA for 473916a
test/medium/5.longest_palindromic_substring.test.dart
@@ -18,8 +18,13 @@ void main() {
18
expect(f('cbbd'), equals('bb'));
19
});
20
21
- test('returns input string for input with no palindromes', () {
22
- expect(f('abc'), anyOf(equals('a'), equals('b'), equals('c')));
+ test('returns longest palindromic substring for alphanumeric input', () {
+ expect(f('a1b2c3d3c2b1a'), equals('a1b2c3d3c2b1a'));
23
+ expect(f('racecar12321'), equals('racecar'));
24
+ });
25
+
26
+ test('returns input string for alphanumeric input with no palindromes', () {
27
+ expect(f('abc123'), anyOf(equals('a'), equals('b'), equals('c'), equals('1'), equals('2'), equals('3')));
28
29
}); // group 'longest_palindromic_substring'
30
}
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments