fix: resolve Jellyfin, logout, playback, and Android regressions

This commit is contained in:
edde746
2026-07-09 17:14:45 +02:00
parent a4a2942546
commit 5867809560
22 changed files with 243 additions and 166 deletions
+9 -4
View File
@@ -46,10 +46,12 @@ void main() {
expect(flexibleBool(-1), isFalse);
});
test("maps '1' string to true, other strings to false", () {
test("maps '1' and true strings to true, other strings to false", () {
expect(flexibleBool('1'), isTrue);
expect(flexibleBool('true'), isTrue);
expect(flexibleBool('TRUE'), isTrue);
expect(flexibleBool('0'), isFalse);
expect(flexibleBool('true'), isFalse);
expect(flexibleBool('false'), isFalse);
expect(flexibleBool(''), isFalse);
});
@@ -72,10 +74,13 @@ void main() {
expect(flexibleBoolNullable(2), isFalse);
});
test("maps '1' string to true, other strings to false", () {
test("maps '1' and true strings to true, false strings to false", () {
expect(flexibleBoolNullable('1'), isTrue);
expect(flexibleBoolNullable('true'), isTrue);
expect(flexibleBoolNullable('TRUE'), isTrue);
expect(flexibleBoolNullable('0'), isFalse);
expect(flexibleBoolNullable('true'), isFalse);
expect(flexibleBoolNullable('false'), isFalse);
expect(flexibleBoolNullable('FALSE'), isFalse);
});
test('returns null for null and unsupported types', () {