Skip to content

Commit 993fafc

Browse files
committed
Add field custom to IOFile Meta
1 parent 80b3097 commit 993fafc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

config/meta.go

+5-3
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ import (
1212
type IoFile struct {
1313
Name string
1414
Path string
15+
Custom bool
1516
}
1617

17-
func NewIoFile(fileName, filePath string) IoFile {
18+
func NewIoFile(fileName, filePath string, custom_case bool) IoFile {
1819
return IoFile{
1920
Name: fileName,
2021
Path: filePath,
22+
Custom: custom_case,
2123
}
2224
}
2325

@@ -53,8 +55,8 @@ func NewEgorMeta(task Task, config Config) EgorMeta {
5355
outputs := make([]IoFile, testCount)
5456
for i := 0; i < testCount; i++ {
5557
fileName := fmt.Sprintf("test-%d", i)
56-
inputs[i] = NewIoFile(fileName, path.Join("inputs", fileName+".in"))
57-
outputs[i] = NewIoFile(fileName, path.Join("outputs", fileName+".ans"))
58+
inputs[i] = NewIoFile(fileName, path.Join("inputs", fileName+".in",), false)
59+
outputs[i] = NewIoFile(fileName, path.Join("outputs", fileName+".ans"), false)
5860
}
5961
taskFile, err := GetTaskName(config)
6062
if err != nil {

0 commit comments

Comments
 (0)