File tree Expand file tree Collapse file tree
src/practitest_firecracker Expand file tree Collapse file tree Original file line number Diff line number Diff line change 263263 (map
264264 (fn [test-name]
265265 {test-name
266- [ (into {} (difference (set (get new-map test-name)) (set (get existing-instance test-name))))] })
266+ (into [] (difference (set (get new-map test-name)) (set (get existing-instance test-name))))})
267267 (keys new-map)))
268268
269269 make-instances (flatten (api/make-instances missing-instances new-testname-to-params test-id-testname))
Original file line number Diff line number Diff line change 5252 (return-error " Syntax error: 'drop' must have two arguments" query))
5353 'drop-last (if (<= 1 (count args) 2 )
5454 (if (or (string? (last args)) (coll? (last args)))
55- (apply drop-last args)
55+ (drop-last ( parse-int ( first args)) ( last args) )
5656 (return-error " Syntax error: 'drop-last' second argument has to be ISeqable (String, Array etc.)" query))
5757 (return-error " Syntax error: 'drop-last' must have one or two arguments" query))
5858 'take-last (case (count args)
7878 (string/split (second args) complied)))
7979 (return-error " Syntax error: 'split' must have two arguments" query))
8080 'get (if (= 2 (count args))
81- (first ( take 1 ( drop ( - (parse-int (first args)) 1 ) ( last args ))))
81+ (string/join ( get ( last args) ( dec (parse-int (first args)))))
8282 (return-error " Syntax error: 'get' must have two arguments" query))
8383 'trim (if (= 1 (count args))
8484 (if (string? (first args))
8585 (string/trim (first args))
86- ( return-error " Syntax error: 'trim' should be applied on a string " query) )
86+ " " )
8787 (return-error " Syntax error: 'trim' must have only one argument" query))
8888 (return-error #?(:clj (format " Syntax error: unsupported function '%s'" op)
8989 :cljs (str " Syntax error: unsupported function: " op)) query)))
You can’t perform that action at this time.
0 commit comments