File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 40
40
(- x 1 ))
41
41
42
42
(defmacro time [expr]
43
- (list (quote let ) [(quote start) (quote (System_nanotime )) (quote ret) expr]
43
+ (list (quote let ) [(quote start) (quote (System_nanoTime )) (quote ret) expr]
44
44
(quote (do
45
45
(println (str " Elapsed time: " (_slash_ (- (System_nanoTime ) start) 1000000.0 ) " msecs" ))
46
46
ret))))
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ impl Repl {
31
31
}
32
32
pub fn run ( & self ) {
33
33
let stdin = io:: stdin ( ) ;
34
- let mut stdin_reader = stdin. lock ( ) ;
35
34
36
35
loop {
37
36
print ! ( "{}=> " , self . environment. get_current_namespace_name( ) ) ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ impl ToValue for DivideFn {
16
16
impl IFn for DivideFn {
17
17
fn invoke ( & self , args : Vec < Rc < Value > > ) -> Value {
18
18
match args. len ( ) {
19
- 0 => error_message:: wrong_arg_count ( 1 , args. len ( ) ) ,
19
+ 0 => error_message:: zero_arg_count ( args. len ( ) ) ,
20
20
1 => {
21
21
let val = args. get ( 0 ) . unwrap ( ) . to_value ( ) ;
22
22
match val {
@@ -71,7 +71,7 @@ mod tests {
71
71
use std:: rc:: Rc ;
72
72
73
73
#[ test]
74
- fn divide_without_arguments_returns_one ( ) {
74
+ fn divide_without_arguments_returns_error ( ) {
75
75
let divide = DivideFn { } ;
76
76
let args = vec ! [ ] ;
77
77
assert_eq ! (
You can’t perform that action at this time.
0 commit comments