mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
freestanding: add core linux syscalls and associated tests
This commit is contained in:
committed by
Alexander Medvednikov
parent
666509623e
commit
e724792a67
15
vlib/builtin/bare/.checks/string/string.v
Normal file
15
vlib/builtin/bare/.checks/string/string.v
Normal file
@@ -0,0 +1,15 @@
|
||||
module main
|
||||
|
||||
fn check_string_eq () {
|
||||
println ("checking string_eq")
|
||||
assert "monkey" != "rat"
|
||||
some_animal := "a bird"
|
||||
assert some_animal == "a bird"
|
||||
println ("string_eq passed")
|
||||
}
|
||||
|
||||
fn main () {
|
||||
check_string_eq ()
|
||||
sys_exit(0)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user