1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tests: enable live tests on macos

This commit is contained in:
Alexander Medvednikov
2020-08-26 06:50:32 +02:00
parent 393b46a6dd
commit 84b8e0a7e4
2 changed files with 19 additions and 2 deletions

View File

@@ -398,6 +398,23 @@ pub fn (c byte) str() string {
return str
}
/*
type rune = int
pub fn (r rune) str() string {
mut str := string{
str: malloc(2)
len: 1
}
unsafe {
str.str[0] = r
str.str[1] = `\0`
}
return str
}
*/
pub fn (c byte) is_capital() bool {
return c >= `A` && c <= `Z`
}