v2 / vlib / v / embed_file / tests / embed_file_self_test.v
8 lines · 7 sloc · 243 bytes · ced5f213ef1ef381f247ea0e2f86a1e835dd769c
Raw
1const self_file = $embed_file(@FILE)
2
3fn test_self_file() {
4 source := self_file.to_string()
5 assert source.contains('self_file.to_string')
6 assert source.contains('fn test_self_file() {')
7 assert source.split_into_lines().len > @LINE.int()
8}
9