all: updateimport () and []array

This commit is contained in:
yuyi 2020-04-26 19:49:31 +08:00 committed by GitHub
parent 7b39ab6d06
commit 9f4d498ff1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
59 changed files with 181 additions and 254 deletions

View file

@ -1,6 +1,4 @@
import (
eventbus
)
import eventbus
struct EventData {
data string
@ -10,7 +8,7 @@ fn test_eventbus(){
ev_data := &EventData{'hello'}
mut eb := eventbus.new()
eb.subscriber.subscribe_once("on_test", on_test)
assert eb.has_subscriber("on_test")
assert eb.subscriber.is_subscribed("on_test")