mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 09:12:13 -05:00
Tests: Run swift-format on TestLibWebSwiftBindings
This commit is contained in:
parent
3393a74771
commit
951f4f0984
Notes:
github-actions[bot]
2024-10-01 19:34:14 +00:00
Author: https://github.com/ADKaster Commit: https://github.com/LadybirdBrowser/ladybird/commit/951f4f09842 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1221 Reviewed-by: https://github.com/trflynn89
1 changed files with 2 additions and 2 deletions
|
@ -5,8 +5,8 @@
|
|||
*/
|
||||
|
||||
import AK
|
||||
import Web
|
||||
import Testing
|
||||
import Web
|
||||
|
||||
@Suite
|
||||
struct TestLibWebSwiftBindings {
|
||||
|
@ -17,7 +17,7 @@ struct TestLibWebSwiftBindings {
|
|||
#expect(Web.Bindings.NavigationType.Push.rawValue == 0)
|
||||
|
||||
let end = Web.Bindings.idl_enum_to_string(Web.Bindings.ScrollLogicalPosition.End)
|
||||
let end_view = end.__bytes_as_string_viewUnsafe().bytes();
|
||||
let end_view = end.__bytes_as_string_viewUnsafe().bytes()
|
||||
let end_string = Swift.String(bytes: end_view, encoding: .utf8)!
|
||||
|
||||
#expect(end_string == "end")
|
||||
|
|
Loading…
Reference in a new issue