mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-16 09:12:22 +00:00
bulk code format fix (#8707)
This commit is contained in:
@@ -17,16 +17,20 @@ from flatc_test import *
|
||||
|
||||
class KotlinTests:
|
||||
|
||||
def EnumValAttributes(self):
|
||||
flatc(["--kotlin", "enum_val_attributes.fbs"])
|
||||
def EnumValAttributes(self):
|
||||
flatc(["--kotlin", "enum_val_attributes.fbs"])
|
||||
|
||||
subject = assert_file_exists("ValAttributes.kt")
|
||||
assert_file_doesnt_contains(subject, 'val names : Array<String> = arrayOf("Val1", "Val2", "Val3")')
|
||||
assert_file_doesnt_contains(subject, 'fun name(e: Int) : String = names[e]')
|
||||
subject = assert_file_exists("ValAttributes.kt")
|
||||
assert_file_doesnt_contains(
|
||||
subject, 'val names : Array<String> = arrayOf("Val1", "Val2", "Val3")'
|
||||
)
|
||||
assert_file_doesnt_contains(subject, "fun name(e: Int) : String = names[e]")
|
||||
|
||||
def EnumValAttributes_ReflectNames(self):
|
||||
flatc(["--kotlin", "--reflect-names", "enum_val_attributes.fbs"])
|
||||
def EnumValAttributes_ReflectNames(self):
|
||||
flatc(["--kotlin", "--reflect-names", "enum_val_attributes.fbs"])
|
||||
|
||||
subject = assert_file_exists("ValAttributes.kt")
|
||||
assert_file_contains(subject, 'val names : Array<String> = arrayOf("Val1", "Val2", "Val3")')
|
||||
assert_file_contains(subject, 'fun name(e: Int) : String = names[e]')
|
||||
subject = assert_file_exists("ValAttributes.kt")
|
||||
assert_file_contains(
|
||||
subject, 'val names : Array<String> = arrayOf("Val1", "Val2", "Val3")'
|
||||
)
|
||||
assert_file_contains(subject, "fun name(e: Int) : String = names[e]")
|
||||
|
||||
Reference in New Issue
Block a user