Skip to content

Commit 3b8b84e

Browse files
Use builtin string-to-octets for SBCL
PiperOrigin-RevId: 824509026
1 parent e307f0b commit 3b8b84e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/full-test.lisp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#:clunit
1010
#:cl-protobufs
1111
#:alexandria)
12+
(:import-from #+sbcl #:sb-ext #-sbcl #:babel #:string-to-octets)
1213
(:local-nicknames (#:pi #:cl-protobufs.implementation))
1314
(:export :run))
1415

@@ -90,10 +91,9 @@ Parameters
9091
(repeated-float 211s0 311s0 511s0) (repeated-double 212d0 312d0 512d0)
9192
(repeated-bool t nil t)
9293
(repeated-string "215" "315" "515")
93-
(repeated-bytes
94-
#.(babel:string-to-octets "216")
95-
#.(babel:string-to-octets "316")
96-
#.(babel:string-to-octets "516"))
94+
(repeated-bytes #.(string-to-octets "216")
95+
#.(string-to-octets "316")
96+
#.(string-to-octets "516"))
9797
(repeated-nested-enum :bar :baz :foo)
9898
(repeated-foreign-enum :foreign-bar :foreign-baz :foreign-foo)
9999
(repeated-import-enum :import-bar :import-baz :import-foo)

0 commit comments

Comments
 (0)