# -*- coding: utf-8 -*-
import abjad


def test_selectiontools_VerticalMoment_attack_count_01():

    score = abjad.Score(r'''
        \new Staff {
            \times 4/3 {
                d''8
                c''8
                b'8
            }
        }
        \new PianoStaff <<
            \new Staff {
                a'4
                g'4
            }
            \new Staff {
                \clef "bass"
                f'8
                e'8
                d'8
                c'8
            }
        >>
        ''')

    vertical_moment = abjad.inspect(score).get_vertical_moment_at(abjad.Offset(0))
    assert vertical_moment.attack_count == 3

    vertical_moment = abjad.inspect(score).get_vertical_moment_at(abjad.Offset(1, 8))
    assert vertical_moment.attack_count == 1
