Files
Alexandre Quessy 7b5ebdbb10 Add real unit tests for core math, util, UID, and shape logic
Replace the placeholder TestMaths (which only exercised Qt's
QString::toUpper) with unit tests that cover production code:

- TestMaths: degree/radian conversion, wrapAround, distance helpers, xOr
- TestUtil: map_float/map_int range mapping and clipping, isNumeric,
  fileExists/eraseFile
- TestUidAllocator: sequential allocation, lowest-id reuse, reserve, free
- TestShape: vertex accessors, getCenter, includesPoint, translate,
  applyTransform, polygon round-trip

The test project compiles the real MapMap sources under test and runs
all suites from a single binary via a custom QtTest runner.

Util.cpp uses glTexCoord2f and glVertex2f, which require -lopengl32
on Windows. The main project already links this via src.pri, but the
test project manages its own linkage independently.
2026-05-23 16:18:55 -04:00

101 lines
1.0 KiB
Plaintext

# Eclipse
.cproject
.project
.settings
Debug/
Release/
# Generated
*.la
*.lo
*.o
*.pc
.deps
.libs
# Big files
.*.swp
*.zip
*.gz
*.jpg
*.mmp
*.mov
*.ogg
*.tar
*.rar
*.qm
*.psd
*.ai
*.gif
*.svg
*.ps
*.pdf
# Other files
*.out
*.log
callgrind.out.*
*.dot
# Makefiles
Makefile*
# Generated by Qt
mapmap
tests/mapmap_tests
moc_predefs.h
moc_*.cpp
qrc_*.cpp
*.moc
src/*/mocs/*
src/*/objs/*
src/*/qrc/*
# Folders not to be included
html/
# Mac OS X / MacOS
*.DS_Store
.qmake.stash
Info.plist
*.xcodeproj/
*.pro*user*
*.app
DMGVERSION.txt
*.db
MapMap-*.*.*-*
MapMap-*.*.*-*.dmg
# Created by git.
*.BACKUP.*
*.BASE.*
*.LOCAL.*
*.REMOTE.*
# Local stuff
prototypes/sdl/run
prototypes/wx-01-simple/run
prototypes/wx-03-polyline/run
prototypes/wx-04/run
prototypes/wx-02-input-output/run
prototypes/qgraphicsview
contrib/qtpropertybrowser.new
contrib/pblazasm-read-only
trash
# Windows
*.Debug
*.Release
# except icons files
!resources/images/*
!resources/macOS/Info.plist
!resources/macOS/MapMap.icns
*.json
# Local development notes
KNOWN-WARNINGS.txt