mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-15 08:41:02 +00:00
add tests, remove commented code
This commit is contained in:
parent
97c4ee670b
commit
2385fda259
1 changed files with 0 additions and 26 deletions
|
|
@ -66,29 +66,3 @@ func TestGenerateDate(t *testing.T) {
|
|||
fmt.Printf("error generating date")
|
||||
}
|
||||
}
|
||||
|
||||
// func TestReadAge(t *testing.T) {
|
||||
// csvfile, err := os.Open("age.csv")
|
||||
// if err != nil {
|
||||
// fmt.Printf("%v", err)
|
||||
// }
|
||||
|
||||
// r := csv.NewReader(csvfile)
|
||||
// records, err := r.ReadAll()
|
||||
// if err != nil {
|
||||
// fmt.Printf("%v", err)
|
||||
// }
|
||||
|
||||
// for i := 0; i < len(records); i++ {
|
||||
|
||||
// age, err := strconv.Atoi(records[i][1])
|
||||
// if err != nil {
|
||||
// fmt.Printf("%v", err)
|
||||
// }
|
||||
|
||||
// if age > 100 || age < 13 {
|
||||
// fmt.Printf("age outside of allowed range")
|
||||
// }
|
||||
// fmt.Println(age)
|
||||
// }
|
||||
// }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue