(let ((g!string (gensym))
(g!index (gensym))
(g!value (gensym)))
- (list (list g!string g!index)
- (list string index)
- (list g!value)
- `(aset ,g!string ,g!index ,g!value)
- `(char ,g!string ,g!index))))
+ (values (list g!string g!index)
+ (list string index)
+ (list g!value)
+ `(aset ,g!string ,g!index ,g!value)
+ `(char ,g!string ,g!index))))
(test (string= "foo" "foo"))
(test (not (string= "Foo" "foo")))
(test (not (string= "foo" "foox")))
+
+(let ((str "hello"))
+ (setf (char str 0) #\X)
+ (setf (char str 4) #\X)
+ (test (string= str "XellX")))