테스트 썸네일형 리스트형 ft_strcpy 구현 테스트 char*ft_strcpy(char *dest, char *src); #include #include int main(void) { char text[] = "Hello World!!"; char dest[50]; char* result; result = ft_strcpy(dest, text); printf("%s - %ld\n", dest, dest - result); result = strcpy(dest, text); printf("%s - %ld\n", dest, dest - result); return 0; } strcpy는 문자열을 복사한다. 리턴 값으로 buffer 배열의 첫 주소를 반환 받아야한다. (첫 주소가 아니면 오답) Hello World!! - 0 Hello World!! - 0 결.. 더보기 openstack 테스트코드를 Tox 사용해 테스트하기 tox 는 파이썬의 자동화 테스팅 도구입니다. 이 글은 ubntu 18.04에서 환경에서 진행하였습니다. pip install tox 먼저 tox를 설치해줍니다. git clone https://opendev.org/openstack/python-openstackclient cd python-openstackclient 테스트를 진행할 openstack 프로젝트를 clone 한 뒤에 폴더로 이동해줍니다. ubuntu@devstack-master:~/python-openstackclient$ cat tox.ini [tox] minversion = 3.2.0 envlist = py37,pep8 skipdist = True # Automatic envs (pyXX) will only use the python.. 더보기 이전 1 다음