If I write a C library that includes the Python interface, is it normal to just write unit tests for functions, etc. in Python interface? Assuming the Python interface is complete, this should mean that the C code is working.
Basically I'm lazy in that the Python unit test requires almost zero effort.
thanks, -nick
Tests through the Python interface will be useful acceptance tests for your library. However, they will not be unit tests.
, , . !
, Python , ++ ( C, , !).
, Python, . , C , " , " - , .
, , .
.
, Python- (,?) C, Pythonic-, , unit test Python, C, .
Python. , , , Python C.
Source: https://habr.com/ru/post/1755616/More articles:How to create protection against unauthorized access - installerrequires multiple inheritance in Objective-C - inheritancemultiple inheritance in Objective-C - objective-cReplacing image extensions in jQuery, moving from .png to .gif on the fly - jquerySplit a large string into an array, but the split point cannot break the tag - phpSELECT / UPDATE and SELECT / INSERT kill MySQL server - phpBrowser based best practice MMO - pythonxhr with blackberry phone - cordovaКак я могу создать схему, которая требует определенных элементов, позволяет другим, и является агностиком порядка? - xmlprint groovy nodechild values - grailsAll Articles