v0.1.0
RustBox CI / rustbox (push) Canceled after 0s

This commit is contained in:
Mateusz Gruszczyński committed 2026-10-30 17:22:17 +01:00
1 parent 0421994fe6
commit 425ea7449b
138 files changed
+5705 -1012

No files matched your search

+8 -4
View File
@@ -5,9 +5,13 @@ ROOT = Path(__file__).resolve().parents[1]
def read(path):
return (ROOT / path).read_text()
def test_release_version():
assert 'version = "0.0.6"' in read("Cargo.toml")
assert "# RustBox 0.0.6" in read("README.md")
def test_release_version_is_at_least_006():
import re
cargo = read("Cargo.toml")
match = re.search(r'^version = "(\d+)\.(\d+)\.(\d+)"$', cargo, re.M)
assert match
version = tuple(map(int, match.groups()))
assert version >= (0, 0, 6)
def test_realtime_contract():
ws = read("src/realtime/ws.rs")
@@ -53,7 +57,7 @@ def test_mobile_reader_contract():
def test_message_links_can_open_new_tabs_from_sandbox():
reader = read("src/web/js/40-messages-reader.js")
assert 'iframe.setAttribute("sandbox", "allow-popups allow-popups-to-escape-sandbox")' in reader
assert 'allow-popups allow-popups-to-escape-sandbox' in reader
def test_extended_color_presets_contract():