File: test_math.py

package info (click to toggle)
monty 2025.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 820 kB
  • sloc: python: 5,261; makefile: 136; sh: 20
file content (11 lines) | stat: -rw-r--r-- 157 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
from __future__ import annotations

from monty.math import nCr, nPr


def test_nCr():
    assert nCr(4, 2) == 6


def test_nPr():
    assert nPr(4, 2) == 12