Files
marqdo/tests/lib/log-uuid-smoke.mq.md
T
cflmyandCursor b5c07385e9 feat(markup): finish v0.3 stock migration and green gold
Migrate remaining .mq.md (tests/ext/public/examples), stop elevating local assigns to params, inject form_target in Go libweb, and skip live LLM gold without a real key.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-13 23:43:44 +08:00

23 lines
426 B
Markdown

---
title: lib/log + uuid smoke
import log:lib/log.mq.md
import uuid:lib/uuid.mq.md
import re:lib/re.mq.md
---
# main
> log.info text="hello-info"
> log.debug text="hidden"
> log.set_level level="debug"
> log.debug text="shown-debug"
**id = > uuid.v4**
**n = > len `id`**
> print text=`n`
**ok = > re.is_match text=`id` pattern="^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"**
> print text=`ok`