File: TestXdmfEquals.py

package info (click to toggle)
xdmf 3.0%2Bgit20190531-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,756 kB
  • sloc: cpp: 67,089; ansic: 5,172; python: 4,566; f90: 1,247; java: 187; fortran: 173; makefile: 83; sh: 28
file content (13 lines) | stat: -rw-r--r-- 263 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
from XdmfCore import *

if __name__ == "__main__":

    type1 = XdmfArrayType.Int16()
    type2 = XdmfArrayType.Int16()
    type3 = XdmfArrayType.Int32()

    print "IsEqual True"
    assert type1 == type2
    print "IsEqual False"
    assert not type1 == type3