Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Add test edge cases for String.times(Int) #55

Merged
merged 3 commits into from
Mar 16, 2022
Merged

Add test edge cases for String.times(Int) #55

merged 3 commits into from
Mar 16, 2022

Conversation

Goooler
Copy link
Owner

@Goooler Goooler commented Mar 15, 2022

Amend for #54.

@Goooler Goooler added the enhancement New feature or request label Mar 15, 2022
@Goooler Goooler added this to the 1.6.0 milestone Mar 15, 2022
Comment on lines 14 to 18
assertThrows<IllegalArgumentException> {
"1" * -1
}.message.let {
assertEquals(it, "Param num should >= 0")
}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

val exception = assertThrows<IllegalArgumentException> {
    throw IllegalArgumentException("Talk to a duck")
}
assertEquals("Talk to a duck", exception.message)

Comment on lines +14 to +16
assertFailsWith<IllegalArgumentException> {
"1" * -1
}.message.let {
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Goooler Goooler merged commit abd27c0 into trunk Mar 16, 2022
@Goooler Goooler deleted the test branch March 16, 2022 02:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request unit-tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant