# -*- coding: utf8 - *-
from __future__ import absolute_import, print_function, unicode_literals

import examples.basic_usage
import examples.dataset
import examples.variant_ts_difficulties
import examples.variants


def test_dataset(unihan_options):
    examples.dataset.run()


def test_variants(unihan_options):
    examples.variants.run(unihan_options=unihan_options)


def test_ts_difficulties(unihan_options):
    examples.variant_ts_difficulties.run(unihan_options=unihan_options)


def test_basic_usage(unihan_options):
    examples.basic_usage.run(unihan_options=unihan_options)

# -*- coding: utf8 - *-
from __future__ import absolute_import, print_function, unicode_literals

import examples.basic_usage
import examples.dataset
import examples.variant_ts_difficulties
import examples.variants


def test_dataset(unihan_options):
    examples.dataset.run()


def test_variants(unihan_options):
    examples.variants.run(unihan_options=unihan_options)


def test_ts_difficulties(unihan_options):
    examples.variant_ts_difficulties.run(unihan_options=unihan_options)


def test_basic_usage(unihan_options, capsys):
    examples.basic_usage.run(unihan_options=unihan_options)

    captured = capsys.readouterr()

    assert 'lookup for 好: good' in captured.out
    assert 'matches for "good": 好' in captured.out

Add stdout tests for basic usage example
Add stdout tests for basic usage example
