blob: 6977b8278c07ecd80c0c39a2ec111f4664652ac5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
from main import get_snippets
SNIPPETS = ["pretext",
"//![some name]", "line1",
"//! [some name] [some other name]",
"line2",
"//! [some other name]",
"posttext"]
def test_snippets():
extracted = get_snippets(SNIPPETS)
assert len(extracted) == len(SNIPPETS) - 2
|