fix: resolve Jellyfin, logout, playback, and Android regressions
This commit is contained in:
@@ -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', () {
|
||||
|
||||
Reference in New Issue
Block a user