This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
intelligent_robotics_hw1/test/test_copyright.py
Diogo Peralta Cordeiro 96afe5b656
Add solution for Home Work 1 of Intelligent Robotics
Prompt:
Make a program that makes the rosturtle in turtlesim
run at velocity=v=0.5 m/s and turn with angular_velocity=ω=t/100 where t is time (in seconds);
don't worry about the units too much.
2022-10-02 18:29:58 +01:00

26 lines
962 B
Python

# Copyright 2015 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from ament_copyright.main import main
import pytest
# Remove the `skip` decorator once the source file(s) have a copyright header
@pytest.mark.skip(reason='No copyright header has been placed in the generated source file.')
@pytest.mark.copyright
@pytest.mark.linter
def test_copyright():
rc = main(argv=['.', 'test'])
assert rc == 0, 'Found errors'