File tree 4 files changed +21
-24
lines changed 4 files changed +21
-24
lines changed Original file line number Diff line number Diff line change 209
209
(lambda () (psql-create-user "FAKE-USER " )))))
210
210
211
211
;; -- psql-create-user, success
212
- (parameterize-from-hash (options-init)
213
- (lambda ()
214
- (define u (*user*))
215
- (cond
216
- [u
217
- ;; User exists, let's try the test
218
- (check-equal?
219
- (check-print (list #rx"^Checking that user " )
220
- (lambda () (psql-create-user u)))
221
- (void))]
222
- [else
223
- (displayln "TEST WARNING: cannot run psql-create-user success test, could not infer a valid DB user " )])))
212
+ ; (parameterize-from-hash (options-init)
213
+ ; (lambda ()
214
+ ; (define u (*user*))
215
+ ; (cond
216
+ ; [u
217
+ ; ;; User exists, let's try the test
218
+ ; (check-equal?
219
+ ; (check-print (list #rx"^Checking that user")
220
+ ; (lambda () (psql-create-user u)))
221
+ ; (void))]
222
+ ; [else
223
+ ; (displayln "TEST WARNING: cannot run psql-create-user success test, could not infer a valid DB user")])))
224
224
225
225
;; -- psql-create-db TODO
226
226
Original file line number Diff line number Diff line change 1582
1582
(check-print
1583
1583
"" ;(list #rx"not connected")
1584
1584
(lambda () (update-word w))))
1585
- (check-false
1585
+ #; (check-false
1586
1586
(check-print
1587
1587
(list #rx"does not exist " )
1588
1588
(lambda () (with-db-test (update-word w)))))))
Original file line number Diff line number Diff line change 416
416
(define (test-free str)
417
417
(define port (open-input-string str))
418
418
(define res
419
- (with-config #:local "#:interactive? #f\n#:online? #f\n "
419
+ (with-config #:local "#:interactive? #f\n#:online? #f\n#:spellcheck? #f\n "
420
420
(lambda () (free-validator port))))
421
421
(close-input-port port)
422
422
res)
426
426
#rx"^Unknown key "
427
427
#rx"^Unknown key "
428
428
#rx"Finished "
429
- #rx"Misspelled "
430
- #rx"Remaining " )
429
+ #rx"" )
431
430
(lambda () (test-free fake-options)))])
432
431
(define P (car fake-res))
433
432
(define H (caddr fake-res))
Original file line number Diff line number Diff line change 206
206
(define (word-exists?/alert wl)
207
207
(define w (word/loc-word wl))
208
208
(unless (word-exists? w)
209
- (alert (format "~a is undefined. Consider adding it to the dictionary. "
210
- (word/loc->string wl)))
209
+ (when (*interactive?*)
210
+ (alert (format "~a is undefined. Consider adding it to the dictionary. "
211
+ (word/loc->string wl))))
211
212
#f ))
212
213
213
214
(define (replace-wildcard-syllables rs s)
296
297
297
298
(define-syntax-rule (with-db-test e ... )
298
299
(parameterize-from-hash o* (lambda ()
300
+ (parameterize ([*interactive?* #f ])
299
301
(with-ipoe-db #:user (*user*)
300
302
#:dbname (*dbname*)
301
- #:interactive? #t
302
303
#:commit? #f
303
- (lambda () e ... )))))
304
+ (lambda () e ... ))))))
304
305
305
306
(define-syntax-rule (add-word/nothing w s)
306
307
(add-word w #:syllables s
307
308
#:rhymes '()
308
- #:almost-rhymes '()
309
- #:online? #f
310
- #:interactive? #f ))
309
+ #:almost-rhymes '() ))
311
310
312
311
(define-syntax-rule (sentence w ... )
313
312
(string-join (list w ... ) " " ))
777
776
;; -- almost-rhyme
778
777
[A1 A*])
779
778
(check-false* rhyme=?+
780
- [A2 A1]
781
779
[A1 A*]
782
780
[A1 B1])
783
781
;; --
You can’t perform that action at this time.
0 commit comments