diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2019-11-03 17:33:31 +0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2019-11-03 18:33:31 +0800 |
commit | c95bf293dbe23fa6c5fd9e23b35a4e4ce34da415 (patch) | |
tree | 48006bcf854ef635f64da57dd23f59027af652ce /cask/actor/test/src/ActorsTest.scala | |
parent | 12a91e2b6c78cd347996663f56eadb9616834823 (diff) | |
download | cask-c95bf293dbe23fa6c5fd9e23b35a4e4ce34da415.tar.gz cask-c95bf293dbe23fa6c5fd9e23b35a4e4ce34da415.tar.bz2 cask-c95bf293dbe23fa6c5fd9e23b35a4e4ce34da415.zip |
Flesh out `BatchActor.scala` into its own module, `cask.Actor`. Add the first unit test for an asynchronous logging actor
Diffstat (limited to 'cask/actor/test/src/ActorsTest.scala')
-rw-r--r-- | cask/actor/test/src/ActorsTest.scala | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cask/actor/test/src/ActorsTest.scala b/cask/actor/test/src/ActorsTest.scala new file mode 100644 index 0000000..2c81e5b --- /dev/null +++ b/cask/actor/test/src/ActorsTest.scala @@ -0,0 +1,17 @@ +package cask.actor +import utest._ +object ActorsTest extends TestSuite{ + def tests = Tests{ + test("hello"){ + import Context.Simple.global + + sealed trait Msg + + object logger extends SimpleActor[Msg]{ + def run(msg: Msg) = { + + } + } + } + } +}
\ No newline at end of file |