From 4206f8b905c0e40a48b3a34d8e6b7e4fcfda83e4 Mon Sep 17 00:00:00 2001 From: Michael Bull Date: Wed, 26 Aug 2020 19:11:13 +0100 Subject: [PATCH] Fix suppressed warnings in unit tests --- .../com/github/michaelbull/result/ResultIteratorTest.kt | 2 +- .../kotlin/com/github/michaelbull/result/UnwrapTest.kt | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/kotlin-result/src/commonTest/kotlin/com/github/michaelbull/result/ResultIteratorTest.kt b/kotlin-result/src/commonTest/kotlin/com/github/michaelbull/result/ResultIteratorTest.kt index 57647a1..f4d51d2 100644 --- a/kotlin-result/src/commonTest/kotlin/com/github/michaelbull/result/ResultIteratorTest.kt +++ b/kotlin-result/src/commonTest/kotlin/com/github/michaelbull/result/ResultIteratorTest.kt @@ -42,7 +42,7 @@ class ResultIteratorTest { val iterator = Err("hello").iterator() assertFailsWith { - @Suppress("IMPLICIT_NOTHING_AS_TYPE_PARAMETER") + @Suppress("IMPLICIT_NOTHING_TYPE_ARGUMENT_IN_RETURN_POSITION") iterator.next() } } diff --git a/kotlin-result/src/commonTest/kotlin/com/github/michaelbull/result/UnwrapTest.kt b/kotlin-result/src/commonTest/kotlin/com/github/michaelbull/result/UnwrapTest.kt index 7649b8f..cb6e06f 100644 --- a/kotlin-result/src/commonTest/kotlin/com/github/michaelbull/result/UnwrapTest.kt +++ b/kotlin-result/src/commonTest/kotlin/com/github/michaelbull/result/UnwrapTest.kt @@ -17,7 +17,7 @@ class UnwrapTest { @Test fun throwsExceptionIfErr() { assertFailsWith("called Result.unwrap on an Err value 5000") { - @Suppress("IMPLICIT_NOTHING_AS_TYPE_PARAMETER") + @Suppress("IMPLICIT_NOTHING_TYPE_ARGUMENT_IN_RETURN_POSITION") Err(5000).unwrap() } } @@ -39,7 +39,7 @@ class UnwrapTest { } assertFailsWith("the year should be 1994") { - @Suppress("IMPLICIT_NOTHING_AS_TYPE_PARAMETER") + @Suppress("IMPLICIT_NOTHING_TYPE_ARGUMENT_IN_RETURN_POSITION") Err(1994).expect { message } } } @@ -49,7 +49,7 @@ class UnwrapTest { @Test fun throwsExceptionIfOk() { assertFailsWith("called Result.unwrapError on an Ok value example") { - @Suppress("IMPLICIT_NOTHING_AS_TYPE_PARAMETER") + @Suppress("IMPLICIT_NOTHING_TYPE_ARGUMENT_IN_RETURN_POSITION") Ok("example").unwrapError() } } @@ -71,7 +71,7 @@ class UnwrapTest { } assertFailsWith("the year should be 2010") { - @Suppress("IMPLICIT_NOTHING_AS_TYPE_PARAMETER") + @Suppress("IMPLICIT_NOTHING_TYPE_ARGUMENT_IN_RETURN_POSITION") Ok(2010).expectError { message } } }