-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #377 from scala-native/topic/fix-376
Test that #376 is not reproducible
- Loading branch information
Showing
5 changed files
with
20 additions
and
8 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
...scala/scala/scalanative/issues/_260.scala → .../scala/scalanative/issues/_260Suite.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...scala/scala/scalanative/issues/_314.scala → .../scala/scalanative/issues/_314Suite.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...scala/scala/scalanative/issues/_337.scala → .../scala/scalanative/issues/_337Suite.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...scala/scala/scalanative/issues/_350.scala → .../scala/scalanative/issues/_350Suite.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
unit-tests/src/main/scala/scala/scalanative/issues/_376Suite.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package scala.scalanative.issues | ||
|
||
object _376Suite extends tests.Suite { | ||
test("#376") { | ||
val m = scala.collection.mutable.Map.empty[String, String] | ||
val hello = "hello" | ||
val world = "world" | ||
m(hello) = world | ||
val h = m.getOrElse(hello, "Failed !") | ||
assert(h equals world) | ||
} | ||
} |